package com.xbongbong.workflow.model;


import com.xbongbong.paas.toolbox.wrap.IModel;
import com.xbongbong.workflow.domain.entity.WorkflowTaskLogItemEntity;

import java.util.List;
import java.util.Map;


/**
 * @author 胡国军
 */
public interface WorkflowTaskLogItemModel extends IModel<WorkflowTaskLogItemEntity> {

   @Override
   Integer insert(WorkflowTaskLogItemEntity entity);

   void insertBatch(List<WorkflowTaskLogItemEntity> list);

   @Override
   List<WorkflowTaskLogItemEntity> findEntitys(Map<String, Object> param);

   @Override
   Integer getEntitysCount(Map<String, Object> param);

   @Override
   Integer update(WorkflowTaskLogItemEntity entity);

   WorkflowTaskLogItemEntity getByKey(Long key, String corpid);

   WorkflowTaskLogItemEntity  getByTaskIdNodeId(Long taskId, Long nodeId, String corpid);

    void updateBatch(List<WorkflowTaskLogItemEntity> workflowTaskLogItemEntities, String corpid);

    WorkflowTaskLogItemEntity getByLogIdNodeIdOrderByAddTime(String corpid, Long logId, Long nodeId);

    void deleteByTaskIds(String corpid, List<Long> taskIds);
}
